package com.hmall.common.config;

import com.hmall.common.intercepter.MyFeignInterceptor;
import feign.Logger;
import org.springframework.context.annotation.Bean;


public class DefaultFeignConfiguration {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.BASIC; // 日志级别为BASIC
    }


    @Bean
    public MyFeignInterceptor myFeignInterceptor(){
        return new MyFeignInterceptor();
    }
}